#include <stdio.h>

#define  ROW 2
#define  COL 3

int main(void)
{	        	  
    int a[ROW][COL] = {1, 4, 6, 8, 10, 12}; //1
    int i, j, temp; //1

    for (i = 0; i < ROW; i++) //1
    {	        	  
        temp = a[i][COL - 1];           //将当前行最后一列暂存
        for (j = COL - 2; j >= 0; j--) //1
        {	        	  
            a[i][j + 1] = a[i][j];  //将当前行其他列后移
        }
        a[i][0] = temp;             //将暂存数据赋予当前行0列
    }
    for (i = 0; i < ROW; i++) //1
    {	        	  
        for (j = 0; j < COL; j++) //1
        {	        	  
            printf("%6d", a[i][j]); //1
        }
        printf("\n"); //1
    }

    return 0;
}